﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using RMM.Core.Entity.Cates;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RMM.Cates.Dtos
{

    [AutoMap(typeof(Categories))]
    public class CateDto : EntityDto<int>
    {
        public CateDto()
        {
            childs = new List<CateChildDto>();
        }

        public string Name { get; set; }

        public int Depth { get; set; }

        /// <summary>
        /// 图片url
        /// </summary>
        public string Url { get; set; }

        public List<CateChildDto> childs { get; set; }
    }
    [AutoMap(typeof(Categories))]
    public class CateChildDto : EntityDto<int>
    {
        public string Name { get; set; }

        public int ParentId { get; set; }

        public int Depth { get; set; }

        public string Path { get; set; }

        /// <summary>
        /// 图片url
        /// </summary>
        public string Url { get; set; }
    }
}
